﻿#region
/*******************************************************************************
** File Name:		    IAdminUserService.cs
** Creator:		        chao.jiang 
** EMail:               chao.jiang 
** Create date:	        
** Latest Modifier:
** Latest Modify date:
** Description:		    
** Modify History:
**
** Code Review:
**
** Version number:       1.0.0
*********************************************************************************/
#endregion
using System;
using System.Collections.Generic;
using System.Text;
using Phoenix.Entity;
using Phoenix.Service.Model;

namespace Phoenix.Service.Contracts
{
    public interface IAdminUserService 
    {
        #region  Auto Generation
        
        void AddAdminUser(AdminUserModel model );

		void UpdateByUserID (AdminUserModel model );

		void DeleteByUserID (System.Int32 userID );
		 
        AdminUserModel GetByUserID (System.Int32 userID );
        

		#endregion

        IList<AdminUserModel> GetPagedList(int pageSize, int pageIndex, string trueName, string userName, DateTime? beginDate, DateTime? endDate, out int totalRecord);

        void UpdateStatus(int userID, bool status);

        AdminUserModel GetByUserName(string userName);

        bool GetExistsUserName(string userName);

        void BatchUpdateByDepartLevel(string newLevel, string oldLevel);

    }
}